﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AnimationEditor
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
            
            //Make the from
            Form1 MyForm = new Form1();

            //display the form
            MyForm.Show();

            //start the main program
            while (MyForm.Looping)
            {
                //Call our forms update
                MyForm.Update();

                //Preview Frame Render
                MyForm.PreviwRender();

                //Call my forms Render
                MyForm.Render();



                //Handle Events
                Application.DoEvents();

            }
        }
    }
}
